# Create your views here.

from django.shortcuts import render_to_response

def home(request):
    return render_to_response('home.html', {'data':({'msg':'first'},{'msg':'second'})})
    #return render_to_response('home.html', {'data':'Hello World'})

def query(request):
    q = request.GET.get('q', '')
    cb = request.GET.get('cb', 'callback')
    return render_to_response('queries/' + q + '.html', {'callback':cb})
    #return render_to_response('query.html', {'q':request.GET.get('q', '')})